package m3d31;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
import java.util.Set;

/*
存储键值对的文件，键值连接的符号一般是 等号或空格
键值不需要加引号
*/
public class gLoad {
    public static void main(String[] args) throws IOException {
        Properties prop = new Properties();
        prop.load(new FileReader("day02\\src\\m3d31\\b.txt"));

        //遍历Properties集合
        Set<String> set = prop.stringPropertyNames();
        for (String key: set
             ) {
            String value = prop.getProperty(key);
            System.out.println(key+value);
        }
    }
}
